#ifndef __BLDC_voltage__condition_H__
#define __BLDC_voltage__condition_H__
#include "hal_uart.h"
#include "HAL_device.h" // Device header
#include "hal_gpio.h"
//#include "Whole_Motor_Structure.h"
#include "hal_rcc.h"
#include "Whole_Motor_Parameters.h"
//#include "Sin_table.h"
#include <stdio.h>
#include "motor_status.h"
#include "BLDC_change.h"
void adc_input_gets_and_eval(u16 voltage_u, u16 voltage_v, u16 voltage_w, u16 current_u, u16 current_v, u16 current_w);
void up_down_flat_check(void);
char get_rise_down_status(char pole_number);
u32 get_adc_pole_voltage_value(char pole_number);
int get_adc_pole_current_value(char pole_number);
void set_voltage_and_current_average(void);
int get_adc_pole_current_2in1_value(char pole_number);
void change_over_zero_param(void);
#endif /* __BLDC_voltage__condition_H__ */
